package com.chen.gulimall.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.gulimall.gulimallproduct.entity.CategoryEntity;
import com.chen.gulimall.gulimallproduct.vo.Catelog2Vo;
import com.chen.gulimallcommon.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author mr.chen
 * @email 3061634906@qq.com
 * @date 2022-04-18 22:06:56
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeByLoginByIds(List<Long> asList);

    Long[] findCatelogPath(Long catelogId);

    void updateCasCach(CategoryEntity categoryEntity);

    List<CategoryEntity> queryLevel1Categorys();

    Map<String, List<Catelog2Vo>> getCatagorysJson();
}

